package cn.lyd.user.mapper;

import cn.lyd.user.domain.User;
import cn.lyd.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2022-11-04
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据电话查询
     * @param phone
     * @return
     */
    User findByPhone(String phone);
    /**
     * 根据邮箱查询
     * @param email
     * @return
     */
    User findByEmail(String email);
}
